package com.app.modules.home {
	import com.app.modules.home.view.components.HomeView;
	import com.app.modules.home.view.mediators.HomeViewMediator;
	
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator.FlexMediator;

	public class HomeModuleMediator extends FlexMediator {
		
		static public const NAME:String = "HomeModuleMediator";
		
		public function HomeModuleMediator(viewComponent:HomeModule) {
			super(NAME, viewComponent);
		}
		
		public function get homeModule():HomeModule {
			return viewComponent as HomeModule;
		}
	
		public function get homeView():HomeView {
			return viewComponent.homeView as HomeView;
		}

		override public function onRegister():void
		{
			super.onRegister();
			registerMediator(new HomeViewMediator(homeView));
		}
		
	}
}